<template>
<div class="screen-container">
  <h3>PRINCING PLAN</h3>
  <h4>Perfect Princing Plan</h4>
  <div class="plan-list">
    <div class="plan-box" v-for="plan in plans">
      <div class="card-box">
        <div class="card-part">
          <h5>{{ plan.name }}</h5>
          <span class="plan-dollar">$</span><span class="plan-price">{{ plan.price }}</span><span class="plan-time">/ Month</span>
        </div>
        <div class="divider-line"></div>
        <div class="card-part">
          <div class="selected-box">
            <p><span><ep-Select /></span> HTML5 &amp; CSS3</p>
            <p><span><ep-Select /></span> Bootstrap v5</p>
            <p><span><ep-Select /></span> FontAwesome Icons</p>
            <p><span><ep-Select /></span> Responsive Layout</p>
            <p><span><ep-Select /></span> Cross-broser Support</p>
          </div>
          <div class="btn-box">
            <div class="right-arrow">
              <ep-Right />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</template>

<script setup>
import { reactive } from 'vue'

const plans = reactive([
  {
    name: 'Basic Plan',
    price: '49.00'
  },
  {
    name: 'Standard Plan',
    price: '99.00'
  },
  {
    name: 'Advanced Plan',
    price: '149.00'
  },
])
</script>

<style lang="scss" scoped>
$base-color: #ff3e41;
.screen-container {
  width: 1200px;
  margin: 0 auto;

  h3 {
    color: #51CFED;
  }
  
  h4 {
    padding: 17px 0;
    padding-bottom: 24px;
    font-size: 36px;
  } 

  .plan-list {
    display: flex;
    width: 100%;

    .plan-box {
      width: 33.33%;
      padding: 0 7px;
      text-align: left;
      font-weight: bold;

      .card-box {
        box-sizing: border-box;
        padding: 18px 0;
        padding-bottom: 24px;
        box-shadow: 0px 0px 1px gray;

        .card-part {
          padding: 7px;
          padding: 0 18px;
        }
      }

      h5 {
        color: $base-color;
        font-size: 18px;
        margin-bottom: 12px;
      }

      .plan-dollar {
        vertical-align: top;
        line-height: 24px;
        font-size: 16px;
      }

      .plan-price {
        line-height: 32px;
        font-size: 32px;
      }

      .divider-line {
        width: 100%;
        height: 1px;
        background-color: #DCDCDC;
        margin: 24px 0;
      }

      .selected-box {
        p {
          line-height: 24px;
          padding: 7px 0;
        }
        span {
          display: inline-block;
          color: green;
          margin-right: 17px; 
        }
      }
      .btn-box {
        margin-top: 16px;
        text-align: left;

        .right-arrow {
          display: inline-block;
          cursor: pointer;
          background-color: $base-color;
          width: 32px;
          padding-left: 10px;
          padding-top: 7px;
          color: white;
          line-height: 27px;
          border-radius: 0 24px 24px 0;
        }
      }
    }
  }
}
</style>
